projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19dd4ea
)
(random, srandom): Check HAVE_LRAND48, not HAVE_RAND48.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 4 Sep 1994 07:01:28 +0000
(07:01 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 4 Sep 1994 07:01:28 +0000
(07:01 +0000)
Call lrand48, nor rand48.
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index 5b179453deb696ab32e9176419adf220bbb504ab..004a0b95676cfda9d2e80053b0a530bf593d3f2d 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-2614,8
+2614,8
@@
bcmp (b1, b2, length) /* This could be a macro! */
long
random ()
{
-#ifdef HAVE_RAND48
- return rand48 ();
+#ifdef HAVE_
L
RAND48
+ return
l
rand48 ();
#else
/* The BSD rand returns numbers in the range of 0 to 2e31 - 1,
with unusable least significant bits. The USG rand returns
@@
-2632,7
+2632,7
@@
random ()
srandom (arg)
int arg;
{
-#ifdef HAVE_RAND48
+#ifdef HAVE_
L
RAND48
return srand48 ();
#else
srand (arg);